package com.fengzhuang;

public class phone {
    private String brand;
    private int price;
    //无参构造方法
    public phone() {
        System.out.println("无参构造方法");
    }

    public phone(int price) {
        this.price = price;
    }


    public phone(String brand) {
        this.brand = brand;
    }

    public phone(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }

    public void show() {
        System.out.println(brand + "," + price);
    }
}
